﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="pCategoriaEliminar.aspx.cs" Inherits="pCategoriaEliminar" %>
<%@ MasterType VirtualPath="~/Site.master" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHiddenField" TagPrefix="dx1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script type="text/javascript">
    // <![CDATA[

        function txtNegocioCuitValidar(s, e) {
            var cuit = e.value;
            if (cuit == null || cuit == "") {
                e.isValid = false;
                return;
            }

            var digits = "0123456789";
            for (var i = 0; i < cuit.length; i++) {
                if (digits.indexOf(cuit.charAt(i)) == -1) {
                    e.isValid = false;
                    break;
                }
            }

            if (cuit.length < 7)
                e.isValid = false;

        }

        function txtNegocioNumeroValidar(s, e) {
            var numero = e.value;
            if (numero == null || numero == "") {
                e.isValid = false;
                return;
            }

            var digits = "0123456789";
            for (var i = 0; i < numero.length; i++) {
                if (digits.indexOf(numero.charAt(i)) == -1) {
                    e.isValid = false;
                    break;
                }
            }
        }


        function txtCodigoPostalValidar(s, e) {
            var numero = e.value;
            if (numero == null || numero == "") {
                e.isValid = false;
                return;
            }

            if (numero.length < 4) {
                e.isValid = false;
                return;
            }

            var digits = "0123456789";
            for (var i = 0; i < numero.length; i++) {
                if (digits.indexOf(numero.charAt(i)) == -1) {
                    e.isValid = false;
                    break;
                }
            }



        }
        

    // ]]>
    </script>
    <style type="text/css">
        .style3
        {
            width: 48px;
        }
        .style6
        {
        }
        .style7
        {
        }
        .style8
        {
            width: 114px;
        }
        .style9
        {
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div id="DivTop" style="float: inherit; vertical-align: top; width: 100%">
        <dx:ASPxRoundPanel ID="rpAltaNegocio" runat="server" HeaderText="Eliminar Categoria"
            Width="250px" BackColor="White">
            <HeaderStyle BackColor="#FF9D3C" Font-Bold="False" Font-Names="Gill Sans MT" Font-Size="Large"
                ForeColor="White">
                <BorderBottom BorderStyle="None" />
<BorderBottom BorderStyle="None"></BorderBottom>
            </HeaderStyle>
            <TopLeftCorner Height="4px" Url="~/Images/ASPxRoundPanel/1904902610/TopLeftCorner.png"
                Width="4px">
            </TopLeftCorner>
            <NoHeaderTopLeftCorner Height="4px" Url="~/Images/ASPxRoundPanel/1904902610/NoHeaderTopLeftCorner.png"
                Width="4px">
            </NoHeaderTopLeftCorner>
            <TopRightCorner Height="4px" Url="~/Images/ASPxRoundPanel/1904902610/TopRightCorner.png"
                Width="4px">
            </TopRightCorner>
            <NoHeaderTopRightCorner Height="4px" Url="~/Images/ASPxRoundPanel/1904902610/NoHeaderTopRightCorner.png"
                Width="4px">
            </NoHeaderTopRightCorner>
            <BottomRightCorner Height="4px" Url="~/Images/ASPxRoundPanel/1904902610/BottomRightCorner.png"
                Width="4px">
            </BottomRightCorner>
            <BottomLeftCorner Height="4px" Url="~/Images/ASPxRoundPanel/1904902610/BottomLeftCorner.png"
                Width="4px">
            </BottomLeftCorner>
            <PanelCollection>
                <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                    <table cellpadding="0" cellspacing="5" id="tablaNegocio" width="250px">
                        <tr>
                            <td align="right" class="style9">
                                <dx:ASPxLabel ID="ASPxLabel25" runat="server" 
                                    AssociatedControlID="txtNegocioNombre" 
                                    CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                    CssPostfix="Office2003Olive" Font-Names="Gill Sans MT" Font-Size="Small" 
                                    Text="ID Categoría">
                                </dx:ASPxLabel>
                            </td>
                            <td class="style3">
                                <dx:ASPxTextBox ID="txtIDCategoria" runat="server" 
                                    CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                    CssPostfix="Office2003Olive" Enabled="False" Height="24px" 
                                    SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" Width="60px">
                                    <ValidationSettings ErrorDisplayMode="ImageWithTooltip" ErrorText="">
                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                        <RequiredField ErrorText="Campo Obligatorio" />
                                    </ValidationSettings>
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="style9">
                                <dx:ASPxLabel ID="ASPxLabel1" runat="server" 
                                    AssociatedControlID="txtNegocioNombre" 
                                    CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                    CssPostfix="Office2003Olive" Font-Names="Gill Sans MT" Font-Size="Small" 
                                    Text="Nombre">
                                </dx:ASPxLabel>
                            </td>
                            <td class="style3">
                                <dx:ASPxTextBox ID="txtNombre" runat="server" 
                                    CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                    CssPostfix="Office2003Olive" Height="24px" 
                                    SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" Width="150px">
                                    <ValidationSettings ErrorDisplayMode="ImageWithTooltip" ErrorText="">
                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                        <RequiredField ErrorText="Campo Obligatorio" IsRequired="True" />
                                    </ValidationSettings>
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" class="style9" colspan="2">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" class="style7" colspan="2">
                                &nbsp;</td>
                        </tr>
                        <tr>

                        <td align="left" colspan="2">
                            <table>
                                <tr>
                                    <td align="left">
                                        <dx:ASPxButton ID="btnRegresar0" runat="server" 
                                            CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                            CssPostfix="Office2003Olive" Font-Bold="True" OnClick="btnSiguiente_Click" 
                                            RightToLeft="True" 
                                            SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" TabIndex="15" 
                                            Text="Regresar" ToolTip="Regresar" Width="75px">
                                            <Image Url="~/Images/Iconos/Button-Back-icon.png" Width="50px">
                                                <SpriteProperties Left="0px" />
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td align="center">
                                        <dx:ASPxButton ID="btnGuardar" runat="server" AutoPostBack="False" 
                                            ClientInstanceName="btnGuardar" 
                                            CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                            CssPostfix="Office2003Olive" Font-Bold="True" 
                                            SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" TabIndex="15" 
                                            Text="Eliminar" ToolTip="Eliminar" Width="75px">
                                            <ClientSideEvents Click="function(s, e) {
	popUpOk.Show();
}" />
                                            <Image Url="~/Images/Iconos/no.png" Width="50px">
                                                <SpriteProperties Left="10px" />
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        </tr>
                        <tr align="left">
                            <td align="left" class="style6" colspan="2">
                                <table align"left">
                                    <tr>
                                        <td align="center">
                                            &nbsp;</td>
                                        <td align="right" class="style6">
                                            &nbsp;</td>
                                        <td align="left">
                                            &nbsp;</td>
                                        <td align="right" class="style6">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="style6" colspan="2">
                                <dx:ASPxLabel ID="lblError" runat="server" Font-Bold="True" ForeColor="Red" 
                                    Text="ERROR" Visible="False">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="style6" colspan="2">
                                <dx:ASPxLabel ID="lblIDNegocio" runat="server" Font-Bold="True" ForeColor="Red" 
                                    Text="0" Visible="False">
                                </dx:ASPxLabel>
                                <dx:ASPxLabel ID="lblIdProducto" runat="server" Font-Bold="True" ForeColor="Red" 
                                    Text="0" Visible="False">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                    </table>
                </dx:PanelContent>
            </PanelCollection>
            <Border BorderColor="#8B8B8B" BorderStyle="Solid" BorderWidth="0px" />

<Border BorderColor="#8B8B8B" BorderStyle="Solid" BorderWidth="0px"></Border>
        </dx:ASPxRoundPanel>
        <dx:ASPxPopupControl ID="popUpOk" runat="server" 
                        CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                        CssPostfix="Office2003Olive" EnableHotTrack="False" 
                        LoadingPanelText="Cargando&amp;hellip;" 
                        
            SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" 
            ClientInstanceName="popUpOk" HeaderText="Confirmar eliminación" Modal="True" 
            Width="239px" DisappearAfter="700" PopupHorizontalAlign="WindowCenter" 
            PopupVerticalAlign="WindowCenter" Font-Bold="True" ForeColor="Black">
                        <LoadingPanelImage Url="~/App_Themes/Office2003Olive/Web/Loading.gif">
                        </LoadingPanelImage>
                        <HeaderStyle BackColor="#FF9D3C">
                        <Paddings PaddingRight="6px" />
<Paddings PaddingRight="6px"></Paddings>
                        </HeaderStyle>
                        <ContentCollection>
                            <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                                <table class="style8">
                                    <tr>
                                        <td align="center">
                                            <dx:ASPxLabel ID="ASPxLabel21" runat="server" 
                                                CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                CssPostfix="Office2003Olive" Font-Bold="False" Font-Names="Gill Sans MT" 
                                                Font-Size="Medium" 
                                                Text="La categoría será eliminada junto con todas las sub categorías que contenga">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <dx:ASPxLabel ID="ASPxLabel24" runat="server" 
                                                CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                CssPostfix="Office2003Olive" Font-Bold="False" Font-Names="Gill Sans MT" 
                                                Font-Size="Medium" Text="¿Desea continuar?">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table align="center">
                                                <tr>
                                                    <td align="left">
                                                        &nbsp;</td>
                                                    <td align="right" class="style6">
                                                        <dx:ASPxButton ID="btnPopCerrar" runat="server" AutoPostBack="False" 
                                                            ClientInstanceName="btnPopCerrar" 
                                                            CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" CssPostfix="Office2003Olive" 
                                                            Font-Bold="True" 
                                                            SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" TabIndex="15" 
                                                            Text="Regresar" ToolTip="Regresar" Width="75px" RightToLeft="True">
                                                            <ClientSideEvents Click="function(s, e) {
	popUpOk.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
	popUpOk.Hide();
}"></ClientSideEvents>

                                                            <Image Url="~/Images/Iconos/Button-Back-icon.png" Width="50px">
                                                                <SpriteProperties Left="0px" />
<SpriteProperties Left="0px"></SpriteProperties>
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td align="left">
                                                        <dx:ASPxButton ID="btnPopConfirmar" runat="server" OnClick="btnPopConfirmar_Click" 
                                                            TabIndex="15" ToolTip="Conformar Eliminación" Width="75px" 
                                                            ClientInstanceName="btnPopConfirmar" 
                                                            CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" CssPostfix="Office2003Olive" 
                                                            Font-Bold="True" SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" 
                                                            Text="Eliminar">
                                                            <ClientSideEvents Click="function(s, e) {
	popUpOk.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
	popUpOk.Hide();
}"></ClientSideEvents>

                                                            <Image Url="~/Images/Iconos/no.png" Width="50px">
                                                                <SpriteProperties Left="10px" />
<SpriteProperties Left="10px"></SpriteProperties>
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td align="right" class="style6">
                                                        &nbsp;</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </dx:PopupControlContentControl>
                        </ContentCollection>
                    </dx:ASPxPopupControl>
    </div>
</asp:Content>
